package com.framework.admin.domain.excel;

import java.io.Serializable;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.alibaba.excel.annotation.ExcelProperty;

import lombok.Data;

/**
 * 用户模板导入用户数据入参对象
 * @author lusy
 *
 */
@Data
public class UserExcelDto implements Serializable {

	private static final long serialVersionUID = -911917697469293025L;

	@NotBlank(message="用户名称不能为空")
	@Size(max=20, message="用户名称最大20字符")
	@ExcelProperty("用户名称")
	private String name;
	
	@NotBlank(message="账号不能为空")
	@Size(max=32, message="账号最大32字符")
	@ExcelProperty("账号")
	private String account;
	
	@ExcelProperty("性别")
	private String sex;
	
	@Size(max=15, message="电话最大15位")
	@ExcelProperty("电话")
	private String phone;
	
	@Email
	@Size(max=50, message="邮箱最大50字符")
	@ExcelProperty("邮箱")
	private String email;
	
	@Size(max=20, message="邮箱最大20字符")
	@ExcelProperty("身份证号")
	private String idCard;
	
	@ExcelProperty("角色")
	private String role;
	
	@ExcelProperty("部门")
	private String dept;
	
	@ExcelProperty("状态")
	private String status;
}
